#include "mxunit.hpp"
#include "source.h"
#include <string>
#include <windows.h>

TEST(play1,media) {
	media::getInst().play();
	CHECK(media::getInst().status() == MEDIA_UNKNOW);
}
TEST(play2, media) {
	media::getInst().play("test.mp4");
	CHECK(media::getInst().status() == MEDIA_UNKNOW);
}
TEST(play3, media) {
	std::string name;
	media::getInst().play("test.mp4");
	name = media::getInst().name();
	media::getInst().next();
	Sleep(1000);
	media::getInst().prev();
	name== media::getInst().name();
}
int main() {
	TestKit tk;
	TestResult tr;
	tk.runAllTests(tr);
	return 0;
}